package com.xthink.common.pojo.order;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName("tb_order")
public class Order {
    /*
    * 订单ID
    * */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /*
    * 订单号
    * */
    @TableField("order_number")
    private String orderNumber;


    /*
    * 状态
    * */
    @TableField("status")
    private Integer status;

    /*
    * iccid
    * */
    @TableField("iccid")
    private String iccId;

    /*
    * 套餐名称
    * */
    @TableField("package_name")
    private String packageName;

    /*
    * 交易类型
    * */
    @TableField("transaction_type")
    private Integer transactionType;

    /*
    * 交易金额
    * */
    @TableField("transaction_amount")
    private Double transactionAmount;

    /*
    * 经销商ID
    * */
    @TableField("user_id")
    private Integer userId;

    /*
    * 卡片ID
    * */
    @TableField("card_id")
    private Integer cardId;

    /*
    * 套餐ID
    * */
    @TableField("package_id")
    private Integer packageId;

    /*
     * 创建时间,字段自动填充内容
     * */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /*
     * 更新时间，字段自动填充内容
     * */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
